package com.oracle.scjp.sample.test;

public class PropertyAndCommandLine {

	public static void main(String[] args) {
		String value = System.getProperty("x");
		if (value.equals(args[1])) {
			System.out.println("found");
		}
		
		/*
			D:\Eclipse Indigo WS\SCJP\src2>java com.oracle.scjp.sample.test.PropertyAndCommandLine -Dx=y x y z
			Exception in thread "main" java.lang.NullPointerException
        			at com.oracle.scjp.sample.test.PropertyAndCommandLine.main(PropertyAndCommandLine.java:7)
		 * */
	}
	
}
